// vite.config.js

import { defineConfig } from 'vite';
import uni from '@dcloudio/vite-plugin-uni';

export default defineConfig({
    plugins: [uni()],
    server: {
        proxy: {
            '/api': {
                target: 'http://47.121.202.9:8082',
                changeOrigin: true,
                rewrite: (path) => path.replace(/^\/api/, '')
            } ,
            '/train': {
                target: 'https://api.jisuapi.com',
                changeOrigin: true
            }
        }
    }
});